<?php

/**
 * @author gbfun <gbfun@163.com>  2018-04-23 11:32
 * http://www.wuweiyou.com
 */

class foreground_model_container extends background_model_container
{  
    protected static $_model_foreground_good_category = null;
    public static function get_model_foreground_good_category()
    {
        if(self::$_model_foreground_good_category === null){
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/formatter/good_category.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/db_table/good_category.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/good_category.php';
    
            require_once PROJECT_ROOT_PATH . '/no_public/module/foreground/common/model/db_table/good_category.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/foreground/common/model/good_category.php';
    
            self::$_model_foreground_good_category = db_model_foreground_good_category::get_instance();
        }
    
        return self::$_model_foreground_good_category;
    }
    
    protected static $_model_foreground_good = null;
    public static function get_model_foreground_good()
    {
        if(self::$_model_foreground_good === null){
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/formatter/good.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/db_table/good.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/good.php';
    
            require_once PROJECT_ROOT_PATH . '/no_public/module/foreground/common/model/db_table/good.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/foreground/common/model/good.php';
    
            self::$_model_foreground_good = db_model_foreground_good::get_instance();
        }
    
        return self::$_model_foreground_good;
    }
    
    protected static $_model_foreground_member = null;
    public static function get_model_foreground_member()
    {
        if(self::$_model_foreground_member === null){
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/formatter/member.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/db_table/member.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/member.php';
    
            require_once PROJECT_ROOT_PATH . '/no_public/module/foreground/common/model/db_table/member.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/foreground/common/model/member.php';
    
            self::$_model_foreground_member = db_model_foreground_member::get_instance();
        }
    
        return self::$_model_foreground_member;
    }
    
    protected static $_model_foreground_cart = null;
    public static function get_model_foreground_cart()
    {
        if(self::$_model_foreground_cart === null){
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/formatter/cart.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/db_table/cart.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/cart.php';
    
            require_once PROJECT_ROOT_PATH . '/no_public/module/foreground/common/model/db_table/cart.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/foreground/common/model/cart.php';
    
            self::$_model_foreground_cart = db_model_foreground_cart::get_instance();
        }
    
        return self::$_model_foreground_cart;
    }
    
    protected static $_model_foreground_order = null;
    public static function get_model_foreground_order()
    {
        if(self::$_model_foreground_order === null){
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/formatter/order.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/db_table/order.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/order.php';
    
            require_once PROJECT_ROOT_PATH . '/no_public/module/foreground/common/model/db_table/order.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/foreground/common/model/order.php';
    
            self::$_model_foreground_order = db_model_foreground_order::get_instance();
        }
    
        return self::$_model_foreground_order;
    }
    
    protected static $_model_foreground_order_good = null;
    public static function get_model_foreground_order_good()
    {
        if(self::$_model_foreground_order_good === null){
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/formatter/order_good.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/db_table/order_good.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/order_good.php';
    
            require_once PROJECT_ROOT_PATH . '/no_public/module/foreground/common/model/db_table/order_good.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/foreground/common/model/order_good.php';
    
            self::$_model_foreground_order_good = db_model_foreground_order_good::get_instance();
        }
    
        return self::$_model_foreground_order_good;
    }
    
    protected static $_model_foreground_address_region = null;
    public static function get_model_foreground_address_region()
    {
        if(self::$_model_foreground_address_region === null){
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/formatter/address_region.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/db_table/address_region.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/address_region.php';
    
            require_once PROJECT_ROOT_PATH . '/no_public/module/foreground/common/model/db_table/address_region.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/foreground/common/model/address_region.php';
    
            self::$_model_foreground_address_region = db_model_foreground_address_region::get_instance();
        }
    
        return self::$_model_foreground_address_region;
    }
    
    protected static $_model_foreground_member_address = null;
    public static function get_model_foreground_member_address()
    {
        if(self::$_model_foreground_member_address === null){
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/formatter/member_address.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/db_table/member_address.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/member_address.php';
    
            require_once PROJECT_ROOT_PATH . '/no_public/module/foreground/common/model/db_table/member_address.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/foreground/common/model/member_address.php';
    
            self::$_model_foreground_member_address = db_model_foreground_member_address::get_instance();
        }
    
        return self::$_model_foreground_member_address;
    }
}
